import { constantRoutes } from '@/router'
import { route404 } from '@/router'

const state = {
    menus: []
}

const mutations = {
    setMenus (state, payload) {
        state.menus = [
            ...constantRoutes,
            ...payload,
            route404
        ]
    }
}

export default {
    namespaced: true,
    state,
    mutations
}
